layui.define(function (exports) {
    var $                   = layui.$;
    window.UEDITOR_HOME_URL = './ueditor/';
    window.SERVER_URL       = layui.setter.requestHost;
    $.when(
        $.getScript(window.UEDITOR_HOME_URL + 'ueditor.config.js'),
        $.getScript(window.UEDITOR_HOME_URL + 'ueditor.all.js'),
        $.Deferred(function (deferred) {
            $(deferred.resolve);
        })
    ).done(function (d) {
        exports('ueditor');
    });
})